package cn.itsource.pethome.basic.mapper;

import cn.itsource.pethome.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    /**
     * 员工查询全部
     * @return
     */
    List<T> findAll();

    void add(T t);

    void update(T t);

    void delete(Long id);

    T findOne(Long id);

    List<T> findAll(BaseQuery query);

    Long findCont(BaseQuery query);

    void batchRemove(List<T> ts);

    List<T> loadAll();

    List<T> loadEAll(BaseQuery query);

    List<T> findEAll();
}
